package com.letoken.platform.repo.app.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * Le账户-周期流通记录
 * </p>
 *
 * @author 作者
 * @since 2022-12-10
 */
@Getter
@Setter
@TableName("app_user_circulate")
@ApiModel(value = "AppUserCirculate对象", description = "Le账户-周期流通记录")
public class AppUserCirculate extends Model<AppUserCirculate> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("发行ID")
    @TableField("isssue_id")
    private Integer isssueId;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("流通类型(1周期流通,2分享流通)")
    @TableField("circulate_type")
    private Integer circulateType;

    @ApiModelProperty("流通周期")
    @TableField("circulate_round")
    private Integer circulateRound;

    @ApiModelProperty("剩余周期")
    @TableField("circulate_round_remain")
    private Integer circulateRoundRemain;

    @ApiModelProperty("流通数量(LET)")
    @TableField("circulate_amount")
    private BigDecimal circulateAmount;

    @ApiModelProperty("待流通(LET)")
    @TableField("wait_circulation")
    private BigDecimal waitCirculation;

    @ApiModelProperty("流通时间")
    @TableField("create_time")
    private LocalDateTime createTime;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
